# export namespace="gpu-operator"
# export app_name="gpu-operator"
# export repo="nvidia"
# export helm="$repo/$app_name"
# export url="https://nvidia.github.io/gpu-operator"
# # helm search repo deepflow/deepflow --devel -l

# helm repo remove $repo
# helm repo add $repo $url
# helm repo update $repo

# helm upgrade --install -n $namespace \
#     --create-namespace $app_name $helm \
#     --set validator.driver.env[0].name=DISABLE_DEV_CHAR_SYMLINK_CREATION \
#     --set driver.enabled=true \
#     --set-string validator.driver.env[0].value=true \
#     --set driver.rdma.enabled=true \
#     --set toolkit.enabled=true

# 设备插件
# 容器工具包
# 驱动程序
# 功能发现
# DCGM 监控

# 源码安装

# git clone https://github.com/NVIDIA/gpu-operator.git --depth 1
# cd gpu-operator/deployments/gpu-operator/

# charts/node-feature-discovery

# registry.k8s.io/nfd/node-feature-discovery
# k8s.linkos.org/nfd/node-feature-discovery

helm install --wait --generate-name \
    -n gpu-operator --create-namespace \
    --set validator.driver.env[0].name=DISABLE_DEV_CHAR_SYMLINK_CREATION \
    --set driver.enabled=true \
    --set-string validator.driver.env[0].value=true \
    --set driver.rdma.enabled=true \
    --set toolkit.enabled=true \
    .
